﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace ApiEncryptionSample.Controller
{
    [ApiController]
    [Route("/api/test")]
    public class TestController : ControllerBase
    {
        [HttpPost]
        [Route("")]
        public object Index(MyClass input)
        {
            return new { input = input, time = DateTime.Now };
        }
    }

    public class MyClass
    {
        public string Key { get; set; }

        public string Value { get; set; }
    }
}